﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CreateStaticHtml
{
    public partial class _Default : System.Web.UI.Page
    {
        public bool IsLogin = false;
        public List<Models.Product> projects = null;
        public Interface.IProduct iProduct = null;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["user"] != null)
            {
                IsLogin = true;
                DavidDB.ADO.DBManager db = new DavidDB.ADO.DBManager();
                iProduct = Impl.ImplProduct.GetInstance(db);
                projects = iProduct.GetList();
                db.Commit();
                db.Dispose();
            }
        }
    }
}
